import request from '@/utils/request'

// 查询缓存详细
export function uploadAppFilesApi(data) {
    return request({
        url: '/uploadapp',
        method: 'post',
        headers: {
            'Content-Type': 'multipart/form-data',
        },
        data: data,
    })
}

export function downloadAppFilesApi(filepath) {
    return request({
        url: `/api/file/download/${filepath}`,
        method: 'get',
        responseType: 'blob', // 重要：指定响应类型为blob
        headers: {
            'Content-Type': 'application/octet-stream'
        }
    });
}